home *** CD-ROM | disk | FTP | other *** search
- ; DESC: gets a character from the keyboard V1.00
- ; IN: *{REQ_TYPE} (0:get character,1:see if character
- ; is there,2:get shift status)
- ; OUT: *{CHAR} character ( high byte is shift status,
- ; low byte is char.)
- ; SAMPLE: Callm CHAR_GET,<REQ_TYPE>,<CHAR>
- ; #######################################################
-
- Extrn PUSHALL:Near
- Extrn POPALL:Near
-
- CHAR_GEC Segment
- Assume CS:CHAR_GEC
- Public CHAR_GET
-
- ;notice.
- DB 'CHAR_GET - V1.00, Copyright 1987, CoreTechs ',0DH,0AH
-
- CHAR_GET Proc Near
- Call PUSHALL ;save registers.
-
- Pop AX ;recover request value.
- Int 16H ;get character.
- Push AX ;save character and scan code.
-
- Call POPALL ;recover registers.
- Ret
- CHAR_GET Endp
- CHAR_GEC Ends
- End